package com.wqiuqiu.gulimall.product.feign;

import com.wqiuqiu.common.R;
import com.wqiuqiu.common.excption.BizCodeEnume;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class SecdKillFeignServiceFallback implements SecdKillFeignService {

    @Override
    public R getSecdKillInfoBySkuId(Long skuId) {
        log.error(BizCodeEnume.KILL_SERVICE_EXCEPTION.getMessage());
        return R.error(BizCodeEnume.KILL_SERVICE_EXCEPTION.getCode(), BizCodeEnume.KILL_SERVICE_EXCEPTION.getMessage());
    }
}
